import Layout from "@/components/layout/Layout.vue";
import EmptyLayout from "@/components/layout/EmptyLayout.vue";

/**
 * 路由 meta 信息说明
 * meta: { name: "项目管理", index: "list", hideName: false, hideBreadcrumb: false }
 *    name: 路由名称， index: 有子路由时指定默认页， hideName: 隐藏页面标题， hideBreadcrumb: 隐藏面包屑
 */
export const routes = [
  {
    path: "/login",
    alias: "",
    component: () =>
      import(/* webpackChunkName: "login" */ "@/views/login/Index.vue"),
  },
  {
    path: "/404",
    component: () => import("@/views/errorPage/404"),
  },
  {
    path: "*",
    redirect: "/404",
  },
];

export const asyncRoutes = [
  {
    path: "/index",
    component: Layout,
    mate: {
      name: "首页",
      index: ""
    },
    children: [
      {
        path: "",
        component: () =>
          import(/* webpackChunkName: "index" */ "@/views/index/Index.vue"),
      },
    ],
  },
];
